<template>
  <div id="testNum">
    <p v-countRunning="{ num: amount, time: 120, step: 6 }"></p>
  </div>
</template>

<script>
export default {
  name: "testNum",
  components: {},
  data() {
    return {
      amount: 9856,
    };
  },
  computed: {},
  watch: {},
  created() {
    this.changeCount();
  },
  mounted() {},

  methods: {
    changeCount() {
      let that = this
      setInterval(() => {
        that.$nextTick(() => {
          that.amount = that.amount + 125;
        });
        console.log("amount", this.amount);
      }, 10000);
    },
  },
};
</script>
<style lang='less' scoped>
#testNum {
  min-height: 100vh;
  p {
    font-size: 38px;
    width: 500px;
    height: 500px;
    line-height: 500px;
    text-align: center;
    border: 1px solid #888;
  }
}
//@import url();
</style>